x11: Improve fallbacks for text
authorBenjamin Otte <otte@redhat.com>
Thu, 23 Nov 2017 00:59:19 +0000 (01:59 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 3 Dec 2017 04:46:46 +0000 (05:46 +0100)
commit9b78d76873c075aaac0e5d62382bfb1cd1ba065e
treeec470bb511cb56a35d07c87bba621ce25989c62f
parent88684baecf164875f5947a9eff40f567aa172c67
x11: Improve fallbacks for text

(1) Try all passed in formats in order if one of them fails.
(2) Don't blindly accept all formats, make sure they are mime types
(3) Add a bunch of special non-mime types that plug converters to
    get to mime types
gdk/x11/gdkclipboard-x11.c
gdk/x11/gdkselectioninputstream-x11.c
gdk/x11/gdkselectioninputstream-x11.h
gdk/x11/gdktextlistconverter-x11.c [new file with mode: 0644]
gdk/x11/gdktextlistconverter-x11.h [new file with mode: 0644]
gdk/x11/meson.build